const path = require("path");
const { defineConfig } = require('@vue/cli-service');

module.exports = defineConfig({
  chainWebpack: config => {
    config.resolve.alias
        .set('@', path.resolve(__dirname, 'src'));
  },
  devServer: {
    allowedHosts: 'all',
    host:'0.0.0.0',
    port:'8080',
    proxy: {
      'api': {
        target: 'http://127.0.0.1:3000',
        changeOrigin: true,
        pathRewrite: {
          '^/api': '/api',
        },
      },
    }
},
});



